import request from '@/utils/request'

// 入库列表
export function adminLists(params: any) {
	return request.get({ url: '/order.inventory/lists', params })
}
// 入库列表
export function adminListss(params: any) {
	return request.get({ url: '/order.inventory/lists', params })
}
// 订单列表
export function adminListsorder(params: any) {
	return request.get({ url: '/order.order/lists', params })
}

// 入库添加
export function adminAdd(params: any) {
	return request.post({ url: '/order.order/add', params })
}
// 入库/调拨详情
export function adminDetail(params: any) {
	return request.post({ url: '/order.order/detail', params })
}
// 入库编辑
export function adminEdit(params: any) {
	return request.post({ url: '/order.order/edit', params })
}
// 入库/调拨确认
export function adminconfirmOrder(params: any) {
	return request.post({ url: '/order.order/confirmOrder', params })
}
// 入库删除
export function adminDelete(params: any) {
	return request.post({ url: '/order.order/delete', params })
}
// 入库获取用户库存字段显示
export function admingetFieldDisplay(params: any) {
	return request.post({ url: '/order.inventory/getFieldDisplay', params })
}
// 修改用户库存字段显示
export function adminsetFieldDisplay(params: any) {
	return request.post({ url: '/order.inventory/setFieldDisplay', params })
}
// 验证是否有仓库权限
export function admincheckWarehouse(params: any) {
	return request.post({ url: '/order.order/checkWarehouse', params })
}
// 入库/调拨更改状态
export function adminupdateStatus(params: any) {
	return request.post({ url: '/order.order/updateStatus', params })
}
// 验证是否公司级别角色
export function admincheckRole(params: any) {
	return request.post({ url: '/order.order/checkRole', params })
}
// 获取用户订单详情字段显示
export function admingetOrderDetailDisplay(params: any) {
	return request.post({ url: '/order.inventory/getOrderDetailDisplay', params })
}
// 修改用户订单详情字段显示
export function adminsetOrderDetailDisplay(params: any) {
	return request.post({ url: '/order.inventory/setOrderDetailDisplay', params })
}

// 验证用户操作权限
export function admincheckActionPermissions(params: any) {
	return request.post({ url: '/auth.admin/checkActionPermissions', params })
}
// 库存修改
export function adminInventoryedit(params: any) {
	return request.post({ url: '/order.Inventory/edit', params })
}
// 获取所有管理员
export function adminauthall(params: any) {
	return request.post({ url: '/auth.admin/all', params })
}
// 删除订单详情数据
export function orderDataDelete(params: any) {
	return request.post({ url: '/order.order/orderDataDelete', params })
}
